﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CourtScheduleCtrl.ascx.cs" Inherits="badminton.Controls.CourtScheduleCtrl" %>
 <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
    <div >
    <table border="0" cellspacing="0" cellpadding="0" width="100%">
        <tr>
            <td>
                选择球馆：<asp:DropDownList ID="DropDownList_schedulehall" runat="server" 
                    onselectedindexchanged="OnScheduleHallChanged" AutoPostBack="True">
                </asp:DropDownList>
                &nbsp;日期：<asp:TextBox ID="TextBox_scheduledate" runat="server" Width="126px" 
                    ontextchanged="OnScheduleDateChanged" AutoPostBack="True"></asp:TextBox><asp:CalendarExtender
                ID="CalendarExtender1" runat="server" TargetControlID="TextBox_scheduledate" 
                    Format="yyyy.MM.dd ">
            </asp:CalendarExtender>
            </td>
        </tr>
        <tr>
            <td>
                <asp:ListView ID="ListView1" runat="server">
                    <LayoutTemplate>
                      <table class="thinframetable" cellpadding="0" cellspacing="1" border="0" ID="tbl1" runat="server" width="100%">
                        <tr  class="thinframetable" id="Tr1" runat="server" >
                          <td id="Th1" runat="server">球场</td>
                          <td id="Th3" runat="server"  align="center">
                          <table border="0" cellspacing="0" cellpadding="0" width="100%">
                          	<tr>
                          		<td align="center">
                                                          安排明细(小时)
                          &nbsp; <font style='background-color: #FF0000'>&nbsp;&nbsp;</font>预定
                          &nbsp; <font style='background-color: #00FF00'>&nbsp;&nbsp;</font>培训
                          &nbsp; <font style='background-color: #FFFF00'>&nbsp;&nbsp;</font>其它

                                </td>
                          	</tr>
                          	<tr>
                          		<td align="center"><asp:Image ID="Image1" runat="server" ImageUrl="../images/courtschedule/24hour.PNG" /></td>
                          	</tr>
                            
                          </table>                             
                          </td>
                          <td id="Th4" runat="server">详细信息</td>
                        </tr>
                        <tr runat="server" id="itemPlaceholder" />
                      </table>
                    </LayoutTemplate>
                    <ItemTemplate>
                      <tr  class="thinframetable" id="Tr2" runat="server">
                        <td>
                          <asp:Label ID="courtname" runat="server" Text='<%# Eval("name") %>'  />
                        </td>
                        <td align="center">
                          <asp:Label ID="shedulerender" runat="server" Text='<%# GetSchedule(Eval("id")) %>' />
                        </td>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text='<%# GetDetailSchedule(Eval("id")) %>' ></asp:Label>
                        </td>
                      </tr>
                    </ItemTemplate>
                </asp:ListView>
            </td>
        </tr>
    </table>

    </div>